<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/videointelligence/v1beta1/video_intelligence.proto

namespace Google\Cloud\VideoIntelligence\V1beta1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Video segment.
 *
 * Generated from protobuf message <code>google.cloud.videointelligence.v1beta1.VideoSegment</code>
 */
class VideoSegment extends \Google\Protobuf\Internal\Message
{
    /**
     * Start offset in microseconds (inclusive). Unset means 0.
     *
     * Generated from protobuf field <code>int64 start_time_offset = 1;</code>
     */
    private $start_time_offset = 0;
    /**
     * End offset in microseconds (inclusive). Unset means 0.
     *
     * Generated from protobuf field <code>int64 end_time_offset = 2;</code>
     */
    private $end_time_offset = 0;

    public function __construct() {
        \GPBMetadata\Google\Cloud\Videointelligence\V1Beta1\VideoIntelligence::initOnce();
        parent::__construct();
    }

    /**
     * Start offset in microseconds (inclusive). Unset means 0.
     *
     * Generated from protobuf field <code>int64 start_time_offset = 1;</code>
     * @return int|string
     */
    public function getStartTimeOffset()
    {
        return $this->start_time_offset;
    }

    /**
     * Start offset in microseconds (inclusive). Unset means 0.
     *
     * Generated from protobuf field <code>int64 start_time_offset = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setStartTimeOffset($var)
    {
        GPBUtil::checkInt64($var);
        $this->start_time_offset = $var;

        return $this;
    }

    /**
     * End offset in microseconds (inclusive). Unset means 0.
     *
     * Generated from protobuf field <code>int64 end_time_offset = 2;</code>
     * @return int|string
     */
    public function getEndTimeOffset()
    {
        return $this->end_time_offset;
    }

    /**
     * End offset in microseconds (inclusive). Unset means 0.
     *
     * Generated from protobuf field <code>int64 end_time_offset = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setEndTimeOffset($var)
    {
        GPBUtil::checkInt64($var);
        $this->end_time_offset = $var;

        return $this;
    }

}

